#include <stdio.h>
/*
 author: maxiao
 date: 2023-04-04 22:16
 description: 测试正负整数的位运算
*/

int main()
{
    int a=-1, b=16;
    int c, d;
    // 负整数的算术位运算，右侧舍弃，左侧补齐符号位
    c = a >> 1;
    d = b >> 1;
    printf("%d ---> %p\n", c, &c);
    printf("%d ---> %p\n", d, &d);
    return 0;
}
